package com.jorder.github.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageInfo;
import com.jorder.github.bean.ResultModel;
import com.jorder.github.model.TUser;
import com.jorder.github.service.UserService;

@RestController
@RequestMapping("/user")
public class UserController {
	private  Log log=LogFactory.getLog(UserController.class);
	
	@Autowired 
	UserService userService;
	
	
		@GetMapping("/login")
		public HttpEntity<ResultModel> login(){
			PageInfo<TUser> all = userService.getAll();
			return ResultModel.success(all);
		}
		
}
